package com.tuo51.manager.vo;

import com.tuo51.childcare.domain.carestore.StoreItem;
import com.tuo51.foudation.utils.CopyUtils;
import com.tuo51.manager.domain.Channel;
import lombok.Data;

import javax.persistence.Column;
import java.util.Date;

@Data
public class StoreItemVO {
    boolean deleted;
    String id;
    Date created;


    private String title;

    private String channel;

    private String categories;

    private String tags;

    private Integer mediaType = 1;

    private String media;

    private String thumb;

    private String content;

    private String tool;

    private String foodStuff;

    private String notes;

    private Integer month;

    private Integer monthMax;

    private Boolean needVip;



    public static StoreItemVO of(StoreItem obj){
        StoreItemVO ret = new StoreItemVO();

        CopyUtils.copyProperties(obj, ret);

        return ret;
    }
}
